﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECommerce.DAO.Personas
{
    public static class Persona
    {
        public static ECommerce.Model.Personas.Persona GetPersonaById(Int32 PersonaId)
        {
            ECommerce.Model.Personas.Persona result = ECommerce.DAO.Cache.Personas.Persona.GetPersonaById(PersonaId);
            if (result != null)
                return result;
            else
                return ECommerce.DAO.SQL.Personas.Persona.GetPersonaById(PersonaId);
        }
    }
}
